/* 馆藏档案页面特定样式 */

/* 中部内容区域 */
.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 400px;
    background-image: url("../assets/bg-top-red.png"), url("../assets/bg-bottom-red.png");
    background-position: left top, right bottom;
    /* 分别控制位置 */
    background-repeat: no-repeat, repeat-x;
    /* 分别控制重复方式 */
    background-size: auto, auto;
}

.content-container .bar {
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.4)
}

.content-wrapper {
    width: 68%;
    margin-top: 30px;
    margin-bottom: 20px;
    display: flex;
}

/* 左侧树形菜单 */
.tree-container {
    width: 250px;
    background-color: #fff;
    padding: 0px;
}

.tree-menu {
    width: 250px;
    list-style: none;
}

.tree-item {
    padding: 10px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #555555;
    transition: all 0.3s;
    background-color: #F1F1F1;
}

/* 公众服务节点特殊样式 */
.tree-item[data-tree="public-service"] {
    background-color: #BD1A2D;
    color: white;
}

.tree-item:hover[data-tree="public-service"] {
    background-color: #BD1A2D;
    color: #fff;
}

.tree-item .tree-arrow {
    font-size: 12px;
    color: #555555;
}

.tree-item:hover {
    color: #BD1A2D;
}

.tree-item:hover .tree-arrow {
    color: #BD1A2D;

}

.tree-item.selected {
    color: #BD1A2D;
}

.tree-text {
    flex-grow: 1;
}

.tree-arrow {
    /* 移除动画效果 */
}

/* 右侧列表区域 */
.list-container {
    flex-grow: 1;
    padding: 20px;
    padding-top: 10px;
    margin-left: 20px;
    background-color: #fff;
}

.list-header h2 {
    margin-bottom: 20px;
    color: #333;
}

#current-menu {
    height: 32px;
    border-bottom: 1px solid #F1F1F1;
}

#current-menu .title {
    width: fit-content;
    height: 30px;
    line-height: 30px;
}

#current-menu .title::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #BD1A2D;
}

/* 单位概况样式 */
.uni-intro {
    padding: 20px 0;
}

.intro-content {
    line-height: 1.8;
    color: #333;
}

.intro-content h3 {
    color: #BD1A2D;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #F1F1F1;
    padding-bottom: 8px;
}

.intro-content h3:first-child {
    margin-top: 0;
}

.intro-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.intro-content .timeline {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 20px;
}

.intro-content .timeline li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.intro-content .timeline li::before {
    content: "•";
    color: #BD1A2D;
    position: absolute;
    left: 0;
    font-size: 20px;
    line-height: 1;
}

.intro-content .timeline .year {
    color: #BD1A2D;
    font-weight: bold;
    margin-right: 10px;
}

/* 下方信息页 */
.footer-info {
    width: 100%;
    height: 250px;
    background-color: #BD1A2D;
    color: white;
    padding: 30px 0;
    border-top: 1px solid #ddd;
}

.footer-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    margin: 0px 0 70px 0;
}

.footer-section {
    display: flex;
    width: 100%;
    justify-content: center;
}

.footer-section p {
    margin-right: 20px;
    font-size: 18px;
}



.footer-section li {
    margin-bottom: 5px;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}
.footer-content .shi-icon {
    width: 45px;
    height: 55px;
    position: absolute;
    top: 100px;
    right: 300px;
}

.footer-copyright {
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
}



/* 馆藏介绍内容样式 */
.collection-container {
    padding: 20px;
}

.collection-image-container {
    display: flex;
    margin-bottom: 20px;
    justify-content: center;
}

.collection-image {
    width: 250px;
    height: 180px;
    object-fit: cover;
    margin-right: 20px;
}

.collection-text {
    flex: 1;
}

.archive-title {
    color: #D61618;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}
.archive-image-wrapper {
    text-align: center;
}

.publish-info {
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.6;
}

.archive-description {
    line-height: 1.8;
    text-align: justify;
}
.archive-description p {
    text-indent: 2em;
    
}



/* 咨询留言表单样式 */
.inquiry-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.form-title {
    color: #D61618;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    padding: 10px 20px;
    background-color: #D61618;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.submit-btn:hover {
    background-color: #cc0000;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        width: 95%;
    }
    
    .tree-container {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .inquiry-form {
        width: 95%;
    }
    
    .collection-image-container {
        flex-direction: column;
    }
    
    .collection-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
}